#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<time.h>
#include<stdlib.h>
int main(void)
{
	int ch[20]{}, i = 0, j = 100, m = 60;
	srand((unsigned)time(NULL));
	for (i = 0; i < 20; i++)
	{
		ch[i] = rand() % 41 + 60;
		printf("%-4d", ch[i]);
		if (ch[i] >= m)
			m = ch[i];
		if (ch[i] <= j)
			j = ch[i];
	}
	printf("\n%d %d", m, j);

	return 0;
}